﻿@model KarReq.WebUI.Models.QueueIndexViewModel

@{
    Layout = null;
}
<div id="queue">
    <span class="caption">
        <b>Your queue:</b>
        @{int songs = Model.Requests == null ? 0 : Model.Requests.Count();}
        @songs songs(s)
    </span>

    @Html.ActionLink("View Queue", "Index", "Queue",
                new { returnUrl = ((Request.Url.LocalPath != "/Queue/Index") &&
                    (Request.Url.LocalPath != "/KarReq/Queue/Index")) ? 
                    Request.Url.PathAndQuery : Model.ReturnUrl }, null)

    @Html.Partial("_LogOnPartial")

</div>